package com.woniu.mapper;

import com.woniu.entity.vo.CoursePublishVO;
import com.woniu.pojo.Course;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 课程表 Mapper 接口
 * </p>
 *
 * @author xiaotang
 * @since 2023-07-25
 */
public interface CourseMapper extends BaseMapper<Course> {

    CoursePublishVO getCoursePublishById(String courseId);

    @Select("select * from wnxt_course where is_deleted = 0 and status = 'Normal' limit #{num}")
    List<Course> listIndexHot(int num);
}